package com.good.domain.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.good.domain.entity.AdminLog;
import com.baomidou.mybatisplus.extension.service.IService;

import java.time.LocalDateTime;
import java.util.HashMap;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 大钊
 * @since 2022-09-04
 */
public interface IAdminLogService extends IService<AdminLog> {
    AdminLog getBaseAdminLog();

    void setAdminLog(Long uid, String content, Object... params);

    /**
     * 获取操作日志
     *
     * @param page
     * @param uid
     * @param startTime
     * @param endTime
     * @param moduleId
     * @param keywords
     * @return
     */
    IPage<HashMap<String, Object>> pageInfo(IPage<HashMap<String, Object>> page, Long uid, LocalDateTime startTime, LocalDateTime endTime, Integer moduleId, String keywords);

    /**
     * 忽略敏感字段
     * @param toString
     * @return
     */
    String ignoreKeywords(String toString);
}
